package com.leon.proxy.aop;

import com.leon.proxy.aop.Proxy;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 史鸿禹
 * @date 2022/07/13  7:32 下午
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("proxyConfig.xml");
        Person person = (Person) context.getBean("person");
        person.eat();
    }
}
